#include "testFile.h"

MusicFile filledFile("file_name", "mp3", "/path/to/file");
MusicFile emptyFile;

void launchFileTests()
{
	testFileGetters();
	testFileSetters();
}

void testFileGetters()
{
	std::cout << "getName(filled): " << filledFile.getName() << std::endl;
	std::cout << "getExtension(filled): " << filledFile.getExtension() << std::endl;
	std::cout << "getPath(filled): " << filledFile.getPath() << std::endl;
	std::cout << "getName(empty): " << emptyFile.getName() << std::endl;
	std::cout << "getExtension(empty): " << emptyFile.getExtension() << std::endl;
	std::cout << "getPath(empty): " << emptyFile.getPath() << std::endl;
}

void testFileSetters()
{
	std::cout << " --> Setting info to emptyFile" << std::endl;
	emptyFile.setName("emptyFile");
	emptyFile.setExtension("ext");
	emptyFile.setPath("/path/___/../");
	std::cout << "getName(empty): " << emptyFile.getName() << std::endl;
	std::cout << "getExtension(empty): " << emptyFile.getExtension() << std::endl;
	std::cout << "getPath(empty): " << emptyFile.getPath() << std::endl;
}